<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client_tracking.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/tips.js"></script>
<script src="${staticServer}/js/web/consultant_client_tracking_list.js?1.0"></script>

<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script>
var contextPath='${contextPath}';

$(function(){
	$("#center").val("<#if zhichu??>${zhichu.regionns}</#if>")
});

function submit(){
	window.location.href="${contextPath}/index/posList.htm?center="+$("#center").val();
}
</script>
</head>

<body>
<input type="hidden" id="traId" value="">
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>咨询师业务管理</li>
			<li>&gt;</li>
			<li class="current">客户接待查询</li>
		</ul>
	</div>
	<div id="container">
		<div id="title">Pos机列表</div>
		<table class="simple_table" rel="nohover" style="min-width: 750px;">
			<tr>
				<td>
				<label for="phone">中心地址：</label> 
				<select id="center">
					<option value="">全部</option>
					<#if offList??>
					<#list offList as list>
						<option value="${list.name}">${list.name}</option>
					</#list>
					</#if>
				<select>
				<br/>
               	</td>
              	<td rowspan="4">
              	<input type="button" value=" 查 询 " onclick="submit()" />
              	<a href="${contextPath}/index/addpos.htm"><input type="button" value=" 添加Pos机  " /></a>
				
			</tr>
		</table>
		<table>
			<tr class="fields">
				<th width="100">中心</th>
				<th width="100">Pos机商家</th>
				<th width="100">办理时间</th>
				<th width="100">需处理情况</th>
				<th width="100">绑定银行卡</th>
				<th width="100">绑定身份证</th>
				<th width="100">联系人</th>
				<th width="100">状态</th>
				<th width="100">操作</th>
			</tr>
			
			<#if list??>
				<#list list as list>
					<tr class="even_row">
						<td align="center">${list.center}</td>
						<td align="center">${list.pos_sj}</td>
						
						<td align="center"><#if list.banli_date??>${list.banli_date}</#if></td>
						<td align="center">${list.msg}</td>
						<td align="center">${list.bank_id}</td>
						<td align="center">${list.id_card}</td>
						<td align="center">${list.nickname}</td>
						<td align="center">
							<#if list.state??>
								<#if list.state=="0">
									在用
								<#elseif list.state=="1">
									备用
								<#elseif list.state=="2">
									废弃
								</#if>
							</#if>
						</td>
						<td align="center"><a href="${contextPath}/index/addpos.htm?id=${list.id}">编辑</a></td>
					</tr>
				</#list>
			</#if>
		</table>
	</div>
	
	<div id="pager">
	<ul id="pagination" style="padding-left: 14px">
		<#if page??>
		<#if page.pagetotal?? && page.pagetotal!="0">
	<#assign pagetotal = page.pagetotal>
	<#else>
	<#assign pagetotal = 1>
	</#if>
			<#if page.currpage??>
	<#assign currpage = page.currpage>
	<#else>
	<#assign currpage = 1>
	</#if>
				<#if currpage==1 >
					<li class="previous-off">首页</li>
					<li class="previous-off">上一页</li>
					<#else>
					<li class="previous"><a href="${contextPath}/index/posList.htm?currPage=1">首页</a></li>
					<li class="previous"><a href="${contextPath}/index/posList.htm?currPage=${currpage-1}">上一页</a></li>
					</#if>
					<input type="hidden" id="total" value="${page.pagetotal}" />	
		<#if pagetotal<=11>
			<#list 1..pagetotal as index_up>  
	           <#if currpage==index_up > 
	           		<li class="current">${index_up}</li>
	           <#else>
	           		<li><a href="${contextPath}/index/posList.htm?currPage=${index_up}">${index_up}</a></li>  
	           </#if>  
			</#list>  
		<#else>
			<#if currpage<=8 >
				<#list 1..9 as index_up>  
	           	<#if currpage==index_up >  
	            	<li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/posList.htm?currPage=${index_up}">${index_up}</a></li> 
	           	</#if>
	           	</#list>  
	           	<li>...</li>
	           	<li><a href="${contextPath}/index/posList.htm?currPage=${pagetotal}">${pagetotal}</a></li>  
				
			<#elseif (currpage>= 9 && currpage<pagetotal-7)  >	
				<li><a href="${contextPath}/index/posList.htm?currPage=1">1</a></li>  
				<li>...</li>
				<#list currpage-3..currpage+3 as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/posList.htm?currPage=${index_up}">${index_up}</a></li>  
	           	</#if>
	           	</#list>
				<li>...</li>
	           	<li><a href="${contextPath}/index/posList.htm?currPage=${pagetotal}">${pagetotal}</a></li>   
			<#else>
				<li><a href="${contextPath}/index/posList.htm?currPage=1&nickname=${nickname}&invalid=${invalid}&startTime=${startTime}&endTime=${endTime}">1</a></li> 
				<li>...</li>
				<#list pagetotal-8..pagetotal as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/posList.htm?currPage=${index_up}">${index_up}</a></li> 
	           	</#if>
				</#list>  
			</#if>
		</#if> 
		<#if currpage==pagetotal >
		 	<li class="previous-off">下一页</li>
		 	<li class="previous-off">尾页</li>
		<#else>
			<li class="previous"><a href="${contextPath}/index/posList.htm?currPage=${currpage+1}">下一页</a></li>
			<li class="previous"><a href="${contextPath}/index/posList.htm?currPage=${page.pagetotal}">尾页</a></li>
		</#if>
		<li class="previous"></li>
		<li class="pageinfo">共${page.total}条记录</li>
	</#if>
	</ul>
	</div>
	
	<div class="emptyline"></div>
</body>
</html>